package edu.sctu.practice.class01.zhoumengxue.assign.assign02;

/**
 * Created by ASUS on 2015/10/8.
 */
public class Main {

    public static void main(String[] args) {

//圆面积的练习
        Circle circle1 = new Circle(2);
        circle1.printcircle(circle1);

        Circle circle2 = new Circle(8);
        circle2.printcircle(circle2);

        System.out.println("圆对象:" + Circle.numOfObjects);

//有理数的练习
        Rational number = new Rational(2, 8);
        Rational number2 = new Rational(4, 6);

        System.out.println("num1和num2的加法为：" + number.addition());
        System.out.println("num1和num2的减法为：" + number.division());
        System.out.println("num1和num2的乘法为：" + number.multiplication());
        System.out.println("num1和num2的除法为：" + number.subtration());

        System.out.println("num1和num2的加法为：" + number2.addition());
        System.out.println("num1和num2的减法为：" + number2.division());
        System.out.println("num1和num2的乘法为：" + number2.multiplication());
        System.out.println("num1和num2的除法为：" + number2.subtration());

    }

}
